{%extends file="wap_activity/page/layout.tpl"%}
{%block name="sub-head-static"%}
    {%require name="wap_activity:static/giftindex/giftindex.less"%}
    {%require name="wap_activity:static/giftindex/giftindex.js"%}
    <script type="text/javascript">
        P.data('activity_key','{%$data.activity_key%}');
    </script>
{%/block%}

{%block name="html-body"%}
    <div class="activity-giftindex">

        {%if $data.status == 2%}
            <div class="gift-container waiting">
                <div class="header-tip">真融宝红包里藏着{%$data.info%}元钱</div>
                <img src="../static/giftindex/image/waiting-top.png" >
                <div class="gift-content">
                    <div class="waiting-pager">
                        <span class="money">￥</span>{%$data.info%}
                    </div>
                    <div class="gift-bg"></div>
                </div>
                <div class="guide-lottery">
                    <div class="content">
                        <div>
                            <a class="btn-share"></a>
                            <a class="btn-assets" href="/wap/wallet"></a>
                        </div>
                        <img src='../static/giftindex/image/waiting-tip.png'>
                    </div>
                </div>
                <img src="../static/giftindex/image/cloud.png">
            </div>
        {%elseif $data.status == 3 || $data.status==4%}
            <div class="gift-container open">
                <div class="header-tip">您已获得真融宝赠送的{%$data.info%}元红包</div>
                <div class="gift-content">
                    <div class="open-pager"><span class="money">￥</span>{%$data.info%}</div>
                    <div class="gift-bg"></div>
                </div>
                <div class="guide-lottery">
                    <div class="content">
                        <div>
                            <a class="btn-register" href="#register-place"></a>
                            <a class="btn-assets" href="/wap/wallet"></a>
                        </div>
                        <img src='../static/giftindex/image/open-tip.png'>
                    </div>
                </div>
                <img src="../static/giftindex/image/cloud.png">
            </div>
        {%else%}
            <div class="gift-container default">
                <div class="light"></div>
                <div style="height: 20px"></div>
                <img src="../static/giftindex/image/default-top.png">
                <div class="gift-content">
                    <div class="gift">
                        <span class="throw1">￥10</span>
                        <span class="throw2">￥6</span>
                        <span class="throw3">￥8</span>
                        <span class="throw4">￥5</span>
                        <span class="throw5">￥99</span>
                        <span class="throw6">￥3</span>
                        <span class="throw7">￥8</span>
                        <span class="throw8">￥10</span>
                        <span class="throw9">￥5</span>
                        <span class="throw10">￥99</span>
                    </div>
                    <div class="gift-bg"></div>
                </div>
                <div class="guide-lottery">
                    <div class="content">
                        <div>
                            <a class="btn-share"></a>
                            <a class="btn-assets" href="/wap/wallet"></a>
                        </div>
                        <img src='../static/giftindex/image/default-tip.png'>
                    </div>
                </div>
                <img src="../static/giftindex/image/cloud.png">
            </div>
        {%/if%}

        <img src="../static/giftindex/image/part1.png">
        <img src="../static/giftindex/image/part2.png">
        {%widget name="wap_activity:widget/summary/summary.tpl" call = "summary" from="12"%}
    </div>
{%/block%}